﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ShopOnline.Models.Press>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	TIN TỨC - SỰ KIỆN
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <link href="../../Content/Styles/validationEngine.jquery.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.6.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validationEngine-en.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validationEngine.js" type="text/javascript"></script>
         <script>
             jQuery(document).ready(function () {
                 // binds form submission and fields to the validation engine
                 jQuery("#formID").validationEngine();
             });         
        </script>
<!-- code validate không thay đổi-->

       <!-- start new orther-->
				<div class="new_orther">
                    <div class="new_orther_top">
                        <div class="main_project_left"></div>		
                        <div class="title_project">TIN TỨC - SỰ KIỆN</div>
                        <div class="main_project_right"></div>
                    </div>
                    <!--start new orther center-->
                    <div class="new_orther_center">
                        <div class="title_news"><%= Model.title%></div>
                        <div class="content_news"><%= Model.body%></div>
                    </div>
        
    
    
    </div>
    <!--
   <form method="post" enctype="multipart/form-data" id="formID" class="formular">
        <fieldset>
            <legend>Hỏi đáp </legend>
   <if ((int) ViewData["state"]==1 )
     {>
         <div style="color:Red"> Gửi thàng công  </div>
         
     } 
            <div class="editor-label">
                Họ tên: 
            </div>
            <div class="editor-field">
                <input type="text" id="name" name="name"  class='validate[required] text-input' />
            </div>
            
            <div class="editor-label">
                Địa chỉ:
            </div>
            <div class="editor-field">
                <input type="text" id="address" name="address"  class='validate[required] text-input'/>
            </div>
            
            <div class="editor-label">
                Điện thoại:
            </div>
            <div class="editor-field">
               <input type="text" id="phone" name="phone"  class='validate[required] text-input' />
            </div>
            
            <div class="editor-label">
                Email:
            </div>
            <div class="editor-field">
                <input type="text" id="email" name="email"  class='validate[required] text-input' />
            </div>
            
            <div class="editor-label">
                Tiêu đề:
            </div>
            <div class="editor-field">
                <input type="text" id="title" name="title"   class='validate[required] text-input'/>
            </div>
            
            <div class="editor-label">
                Nội dung:
            </div>
            <div class="editor-field">
                <textarea  id="body" name="body"  class='validate[required] text-input' ></textarea>
            </div>        
            <p>
                <input type="submit" value="Gửi" />
                <input type="reset" value="Xóa văn bản" />
            </p>
        </fieldset>
    </form>
    -->
       <div class="new_orther_top">
                        <div class="main_project_left"></div>		
                        <div class="title_project">CÁC BÀI VIẾT MỚI NHẤT</div>
                        <div class="main_project_right"></div>
                    </div>
                    <div class="clearn"></div>
 <div class="news_event_new">
    <ul>
     <%foreach (var item in (List<ShopOnline.Models.Press>)ViewData["listPressNew"])
       {%>
        <li>
           <%= Html.ActionLink(item.title, "BrowsePress", "Press", new { id = item.pressId },null)%>
        </li>
       <%
       } %>
    </ul>
 </div> 
 <!--
   <div class="new_orther_top">
                        <div class="main_project_left"></div>		
                        <div class="title_project">CÁC BÀI VIẾT LIÊN QUAN</div>
                        <div class="main_project_right"></div>
                    </div>
 <div class="news_event_relation">
    <ul>
     <foreach (var item in (List<ShopOnline.Models.Press>)ViewData["listPress"])
       {%>
        <li>
           <= Html.ActionLink(item.title, "BrowsePress", "Press", new { id = item.pressId },null)%>
        </li>
       <
       } 
    </ul>
 </div>
 -->
</asp:Content>

